package com.company.cloud.pay.modules.api.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 支付下单
 */
@Getter
@Setter
public class PayOrderRequest extends PayBaseRequest {

    //wx
    @ApiModelProperty(value = "商品描述", required = true)
    @NotEmpty(message = "商品描述不能为空")
    private String body;

    @ApiModelProperty(value = "商户订单号", required = true)
    @NotEmpty(message = "商户订单号不能为空")
    private String outTradeNo;

    @ApiModelProperty(value = "支付金额(分)", required = true)
    @NotNull(message = "支付金额不能为空")
    private int totalFee;

    @ApiModelProperty(value = "用户标识")
    private String openid;

    @ApiModelProperty(value = "附加数据")
    private String attach;

    private String returnUrl;


}
